<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/11 0011
 * Time: 上午 11:50
 */include "config.php";
 $uid=isset($_REQUEST["uid"])? $_REQUEST["uid"]:"";

 $queryCart="SELECT * FROM `dogmall`.`carts` WHERE u_id=?";

 $stmt=$conn->prepare($queryCart);
 $stmt->bind_param("i",$uid);

 $stmt->execute();

 $result=$stmt->get_result();

 $resultArr=array();
 while ($row=$result->fetch_assoc()){
     array_push($resultArr,$row);
 }
 print_r(json_encode($resultArr));


















